import request from '@/utils/request'

export const getAllApi = (customerId, invoiceCode, skuId, pageNum, pageSize) => {
  return request.get(`/outboundOrderDetails?customerId=${customerId}&invoiceCode=${invoiceCode}&skuId=${skuId}&pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const getAllByStatusApi = (customerId, invoiceCode, skuId, pageNum, pageSize) => {
  return request.get(`/outboundOrderDetails/byStatus?customerId=${customerId}&invoiceCode=${invoiceCode}&skuId=${skuId}&pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const batchSaveApi = (data) => {
  return request.post(`/outboundOrderDetails/batch-add`, data)
}
export const getItemsApi = (id) => {
  return request.get(`/outboundOrderDetails/outbound/${id}`)
}
export const getByIdApi = (id) => {
  return request.get(`/outboundOrderDetails/${id}`)
}
export const updateApi = (data) => {
  return request.put(`/outboundOrderDetails/update`, data)
}
export const updateByIdApi = (id) => {
  return request.put(`/outboundOrderDetails/updateById/${id}`)
}